<!-- templates/blog/post_list.html -->
<!DOCTYPE html>
<html>
<head>
    <title>welcome blog</title>
</head>
<body>
    <h1>welcome blog</h1>
    {% for post in posts %}
    <div>
        <h2><a href="{% url 'post_detail' post.pk %}">{{ post.title }}</a></h2>
        <p>作者：{{ post.author }}</p>
        <p>发布日期：{{ post.publish_date }}</p>
    </div>
    {% endfor %}
    <a href="{% url 'post_create' %}">创建新文章</a>
</body>
</html>